package org.news.web;

import java.util.ArrayList;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class OnlineUsersInitListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent arg0) {
        arg0.getServletContext()
                .setAttribute("ONLINE_USERS", new ArrayList<>());
    }

    @Override
    public void contextDestroyed(ServletContextEvent arg0) {
        // 暂无销毁需求
    }
}
